home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / gift4b16.zip / PRO-R.BAT < prev    next >
DOS Batch File  |  1992-09-04  |  692b  |  37 lines

  1. @echo off
  2. rem -- pro-r.bat - process "relist" archive contents - for ProDOOR 3.4x
  3. rem -- %1-comport, %2-minutes, %3-resultfile, %4 sourcefile
  4.  
  5. prosm /chkpath testfile %0 >>%3
  6. if errorlevel 1 goto end
  7. testfile %4 zip lzh gif
  8. if errorlevel == 98 goto cant_handle
  9. if errorlevel == 3 goto gif
  10. if errorlevel == 2 goto lzh
  11. if errorlevel == 1 goto zip
  12. goto end
  13.  
  14. :gif
  15. giftest %4 /p:%1
  16. goto end
  17.  
  18. :zip
  19. ziptv -p%1 -t%2 >>%3 %4
  20. if errorlevel 1 goto error
  21. goto end
  22.  
  23. :lzh
  24. lzhtv -p%1 -t%2 >>%3 %4
  25. if errorlevel 1 goto error
  26. goto end
  27.  
  28. :error
  29. echo. >>%1
  30. echo %0: Error processing %4 ! >>%1
  31. goto end
  32.  
  33. :cant_handle
  34. echo Sorry, %0 does not know how to process %4 ! >>%3
  35.  
  36. :end
  37.